package com.th.supcom.pds.internal.api;

import java.util.List;
import java.util.Map;

import com.th.supcom.pds.domain.pojo.PdsPrescDispenseWindow;
import com.th.supcom.pds.domain.pojo.PdsSupplyPro;
import com.th.supcom.pds.domain.vo.PdsSupplyDetailVO;

public interface PdsSupplyProService
{


    /**
     * PDS_SUPPLY_PRO持久化
     * 
     * @param pdsPresc
     */
    public void persistentPdsSupplyPro (PdsSupplyPro pdsSupplyPro);

    public void modifyPdsSupplyProByExample(PdsSupplyPro  pdsSupplyPro);
    
    public void modifyPdsSupplyProWindow(List <PdsSupplyDetailVO>lsit,Long window);
    
    /**
     * 查询处方供药过程
     * @param pdsSupplyPro
     * @return
     */
    public List <PdsSupplyPro> findPdsSupplyProByExample(PdsSupplyPro pdsSupplyPro);
    
    /**
     * 批量更新处方供药过程
     * 
     * @param pdsSupplyPros
     * @return 更新条数。
     */
    public int modifyPdsSupplyProSortInfoByList (List <PdsSupplyPro> pdsSupplyPros);
    /**
     * 查询窗口排队情况
     * 
     * @param params
     * @return
     */
    public List <PdsPrescDispenseWindow> findPdsPrescWindowByMap (Map <String, Object> params);
    /**
     * keySet:  windIp,  窗口的主键，而非名称
     *          list   List<PdsSupplyVO>或者List<PdsSupplyPro>或者List<PdsSupplyDetailVO>
     * 批量更新分配的窗口
     * @param map
     * add by Zli
     */
    public void modifyBatchSupplyWindow(Map <String, Object>map);

}
